package kin.bean.system;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;




import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
@Table(name="t_kincolumn")
public class KinColumn {
	@Column
	/**
	 * 字段名
	 */
	private String fieldName;
	//@JoinColumn
	@ManyToOne(targetEntity=kin.bean.system.Form.class,cascade={CascadeType.PERSIST,CascadeType.MERGE},fetch=FetchType.LAZY)
	private kin.bean.system.Form form;
	@Column
	/**
	 * 字段类型
	 */
	private String type;
	@Id
	@GeneratedValue
	private int kinColumn_id;
	@Column
	/**
	 * 列表的宽度
	 */
	  private int width;
	@Column
	/**
	 * 列表的高度
	 */
	  private int height;
	  @Column
	  /**
		 * 该字段是否被传输
		 */
	  private boolean serializable;
	  @Column
	  /**
		 * 该字段是否被隐藏
		 */
	  private boolean hidden;
	  @Column
	  /**
		 * 该字段显示的类型
		 */
	  private String xtype;
	  @Column
	  /**
		 * 排序
		 */
	  private int sort;
	  @Column
	  /**
		 * 该字段是否允许为空
		 */
	  private boolean allowBlank;
	  @Column
	  /**
		 * 该字段在列表的名称
		 */
	  private String header;
	  @Column
	  /**
		 * 该字段的显示格式（日期等类型）
		 */
	  private String format;
	  @Column
	  /**
		 * 该字段的最大值
		 */
	  private long max;
	  @Column
	  /**
		 * 该字段的最小值
		 */
	  private long min;
	  @Column
	  /**
		 * 该字段的最大值
		 */
	  private int maxLength;
	  @Column
	  /**
		 * 该字段的最小长度
		 */
	  private int minLength;
	  @Column
	  /**
		 * 该字段在列表的样式名
		 */
	  private String cls;
	  @Column
	  /**
		 * 该字段在列表的样式
		 */
	  private String style;
      
	  @Column
	  /**
		 * 该字段在列表中是否可编辑
		 */
	  private boolean editor;
	  @Column
	  /**
		 * 该字段的验证器
		 */
	  private String vtype;
	  @Column
	  /**
		 * 该字段的正则表达式
		 */
	  private String regexText;
	  @Column
	  /**
		 * 该字段的正则表达式
		 */
	  private String regex;
	  
	 
		
		@Column
		 /**
		 * 该字段真实类型(全名)
		 */
	  private String realType;
		
		@Column
		 /**
		 * 该字段真实类型
		 */
	private String realSimpleType;
	  
	public int getKinColumn_id() {
		return kinColumn_id;
	}
	public void setKinColumn_id(int kinColumn_id) {
		this.kinColumn_id = kinColumn_id;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public boolean isSerializable() {
		return serializable;
	}
	public void setSerializable(boolean serializable) {
		this.serializable = serializable;
	}
	public boolean isHidden() {
		return hidden;
	}
	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}
	public String getXtype() {
		return xtype;
	}
	public void setXtype(String xtype) {
		this.xtype = xtype;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public boolean isAllowBlank() {
		return allowBlank;
	}
	public void setAllowBlank(boolean allowBlank) {
		this.allowBlank = allowBlank;
	}
	
	public String getHeader() {
		return header;
	}
	public void setHeader(String header) {
		this.header = header;
	}
	public String getFormat() {
		return format;
	}
	public void setFormat(String format) {
		this.format = format;
	}
	
	public long getMax() {
		return max;
	}
	public void setMax(long max) {
		this.max = max;
	}
	public long getMin() {
		return min;
	}
	public void setMin(long min) {
		this.min = min;
	}
	public int getMaxLength() {
		return maxLength;
	}
	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}
	public int getMinLength() {
		return minLength;
	}
	public void setMinLength(int minLength) {
		this.minLength = minLength;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}
	public boolean isEditor() {
		return editor;
	}
	public void setEditor(boolean editor) {
		this.editor = editor;
	}
	public String getVtype() {
		return vtype;
	}
	public void setVtype(String vtype) {
		this.vtype = vtype;
	}
	public String getRegexText() {
		return regexText;
	}
	public void setRegexText(String regexText) {
		this.regexText = regexText;
	}
	public String getRegex() {
		return regex;
	}
	public void setRegex(String regex) {
		this.regex = regex;
	}


	public String getRealType() {
		return realType;
	}
	public void setRealType(String realType) {
		this.realType = realType;
	}
	public String getRealSimpleType() {
		return realSimpleType;
	}
	public void setRealSimpleType(String realSimpleType) {
		this.realSimpleType = realSimpleType;
	}
	public kin.bean.system.Form getForm() {
		return form;
	}
	public void setForm(kin.bean.system.Form form) {
		this.form = form;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	  
	  
}
